package com.zjj.learn.javaplus.pkg03.demo304;

public class TestDemo304_3 {

    public static void main(String[] args) {
        Player player = new Player() {

            @Override
            public void playBasketball() {
                System.out.println("打篮球");
            }

            @Override
            public void playPingpang() {
                System.out.println("打乒乓球");
            }
        };

        player.playBasketball();
        player.playPingpang();
    }
}
